package cn.fan.feign.config;

import cn.fan.feign.clients.fallback.FundClientFallbackFactory;
import cn.fan.feign.clients.fallback.UserClientFallbackFactory;
import feign.Logger;
import org.springframework.context.annotation.Bean;

public class FeignClientConfiguration {
    @Bean
    public Logger.Level feignLogLevel(){
        return Logger.Level.BASIC;  //一般用NONE或者BASIC
    }

    @Bean
    public UserClientFallbackFactory userClientFallbackFactory(){
        return new UserClientFallbackFactory();
    }

    @Bean
    public FundClientFallbackFactory fundClientFallbackFactory(){
        return new FundClientFallbackFactory();
    }
}
